<template>
  <div>
      <img src="./assets/Snipaste_2022-10-24_18-54-52.png" alt="" v-show="flag">
     <button @click="flag=!flag">点击以后显示和隐藏</button>
   </div>
</template>
 
<script>
export default {
 
  data() {
    return {
     flag:true,
    };
  },
  
  methods: {
  
  }
};
</script>

<style scoped>
     
</style>